import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class left_drawer_page extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
        child: ListView(
      padding: EdgeInsets.zero,
      children: <Widget>[
        const DrawerHeader(
          decoration: BoxDecoration(
            color: Colors.red,
          ),
          child: Text('抽屉头部'),
        ),
        ListTile(
          title: Row(children: const [Icon(Icons.settings), Text('设置')]),
          onTap: () {
            // 处理点击事件
            Navigator.pop(context);
          },
        ),
        ListTile(
          title: Row(children: const [Icon(Icons.edit), Text('编辑')]),
          onTap: () {
            // 处理点击事件
            Navigator.pop(context);
          },
        ),
        ListTile(
          title: Row(children: const [Icon(Icons.qr_code), Text('扫描')]),
          onTap: () {
            // 处理点击事件
            Navigator.pop(context);
          },
        ),
      ],
    ));
  }
}
